package com.dream.road.web.mapper;

import com.dream.road.web.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户管理 Mapper 接口
 * </p>
 *
 * @author beibei
 * @since 2020-06-10
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名获取用户
     * @param name
     * @return
     */
    User getUserByName(@Param("name") String name);
}
